#ifndef _HMI_SERIAL_H
#define _HMI_SERIAL_H

#include <stdint.h>

#define HMI_SERIAL_BUF_RX_SIZE 64

#define HMI_SERIAL       ((usart_type *) USART2_BASE)
#define HMI_DMA_RX       ((dma_channel_type *) DMA1_CHANNEL6_BASE)
#define HMI_DMA_TX       ((dma_channel_type *) DMA1_CHANNEL7_BASE)

extern void hmi_serial_init(void);
extern void hmi_serial_send(uint8_t* Buf, uint16_t Len);
extern void hmi_serial_isr_handler(uint32_t len);

#endif  
